<template>
  <div class="app-container">
    <div class="page-container-title">
      <img src="../../assets/page-title-icon/1.png" alt="">
      <span>资产负债表</span>
    </div>
    <div class="filter-container">
      <div class="left-block">
        <el-select v-model="nullValue" style="width: 100px" placeholder="剔除条件" size="small">
          <el-option label="剔除条件" value="">
            <el-checkbox v-model="searchForm.verifyChecked" true-label="1" false-label="0">剔除未审核凭证</el-checkbox>
          </el-option>
          <el-option label="剔除条件" value="">
            <el-checkbox v-model="searchForm.verifyChecked" true-label="1" false-label="0">剔除结转凭证</el-checkbox>
          </el-option>
          <el-option label="剔除条件" value="">
            <el-checkbox v-model="searchForm.verifyChecked" true-label="1" false-label="0">剔除本期发生为零</el-checkbox>
          </el-option>
          <el-option label="剔除条件" value="">
            <el-checkbox v-model="searchForm.verifyChecked" true-label="1" false-label="0">剔除期末余额为零</el-checkbox>
          </el-option>
        </el-select>
        <span class="label-text">记账日期</span>
        <el-date-picker
          v-model="searchForm.value1"
          size="small"
          style="width: 240px"
          type="daterange"
          range-separator="~"
          start-placeholder="开始日期"
          end-placeholder="结束日期"/>
      </div>
      <div class="right-block">
        <el-button type="primary" size="small">打印</el-button>
      </div>
    </div>
    <div class="table-title">资产负债表</div>
    <el-table
      :border="true"
      :data="tableData"
      :header-cell-style="{textAlign: 'center'}"
      style="width: 100%">
      <el-table-column
        prop="date"
        label="资产"/>
      <el-table-column
        prop="date"
        align="right"
        label="期末余额"/>
      <el-table-column
        prop="date"
        align="right"
        label="年初余额"/>
      <el-table-column
        prop="date"
        label="负债和净资产"/>
      <el-table-column
        prop="date"
        align="right"
        label="期末余额"/>
      <el-table-column
        prop="date"
        align="right"
        label="年初余额"/>
    </el-table>
    <div class="page-pagination">
      <pagination/>
    </div>
  </div>
</template>

<script>
import Pagination from '@/components/Pagination'
function createSearchForm(tar) {
  let raw = {
    keyword: '',
    month: '1'
  }
  if (tar) {
    raw = Object.assign(raw, tar)
  }
  return raw
}
export default {
  name: 'BalanceSheet',
  components: { Pagination },
  data() {
    return {
      searchForm: createSearchForm(),
      nullValue: '',
      tableData: [{
        date: '2016-05-03',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-02',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-04',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-01',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-08',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-06',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }, {
        date: '2016-05-07',
        name: '王小虎',
        province: '上海',
        city: '普陀区',
        address: '上海市普陀区金沙江路 1518 弄',
        zip: 200333
      }]
    }
  },
  component: { Pagination },
  computed: {
  },
  created() {
  },
  methods: {
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
</style>
